﻿using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace DACU.Tools.Converters
{
	class TrackToVisibilityConverter : IMultiValueConverter
	{
		public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
		{
			if (String.IsNullOrWhiteSpace(values[0] as string) || String.IsNullOrWhiteSpace(values[1] as string))
				return Visibility.Collapsed;
			return Visibility.Visible;
		}

		public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
		{
			throw new NotImplementedException();
		}
	}
}
